package cn.com.aiton.common.model;

import java.io.Serializable;

public class ServiceResult<T> implements Serializable {
    private String message;
    private boolean success;
    private T object;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getObject() {
        return object;
    }

    public void setObject(T object) {
        this.object = object;
    }

    @Override
    public String toString() {
        return "ServiceResult{" +
                "message='" + message + '\'' +
                ", success=" + success +
                ", object=" + object +
                '}';
    }
}
